<template>
	<view class="service">
		<web-view :src="serviceInfo.value"></web-view>
	</view>
</template>

<script>
	import customerService from '@/api/customer.js'
    export default {
		props:[],
        data() {
            return {
				//客服信息
				serviceInfo: {}
            };
        },
        mounted() {
			this.getCustomerService()
        },
        methods: {
			/**
			 * 获取客服
			 * **/
			getCustomerService() {
				customerService.getService({name: 'app_webchat'}).then(res => {
					if(res.data.code == 200) {
						this.serviceInfo = res.data.data
					}
				}).catch(err => {
					console.log(err)
				})
			}
        }
    }
</script>


<style lang="scss" scoped>
	.service{
	}
</style>
